package com.kaigejava.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

@Controller
@RequestMapping
public class AppController {

    @RequestMapping("say")
    @ResponseBody
    public Map<String,Object> say(String say){
        Map<String,Object> map = new HashMap<>();
        map.put("say",say);
        return map;
    }

    @RequestMapping("sa2")
    @ResponseBody
    public Map<String,Object> say2(String say){
        Map<String,Object> map = new HashMap<>();
        map.put("say",say);
        return map;
    }
}